package com.s05.e01.model;


public class User {

	public String name;
	public String surname;
	public String dob;
	public static User parse(String string) {
		User user = new User();
		String[] entrys = string.split(",");
		user.name = entrys[0];
		user.surname = entrys[1];
		user.dob = entrys[2];
		
		System.out.println(user.name);
		
		return user;
	}

	public void greetYourself() {
		System.out.println(this.name);
		System.out.println(this.surname);
		System.out.println(this.dob);
	}
}
